<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
%>
<html>
	<head>
	
		<script src="<%=path%>/static/js/jquery-1.6.1.min.js" type="text/javascript"></script>
		<script src="<spring:url value="/static/js/jquery.easyui.min.js" />" type="text/javascript" ></script>
		<link rel="stylesheet" type="text/css" href="<%=path%>/static/css/themes/default/easyui.css">
		<link href="<%=path%>/static/css/themes/icon.css" rel="stylesheet" type="text/css" />
			
		<script type="text/javascript">
			
		</script>
	</head>

<body>
	<div>
		<form id="infoForm" method="post"
			style="margin: 10; text-align: center;">
			<input type="hidden" name="id" id="id">
			
			<table>
			<tr>
			<td><div>公司名称</div></td>
			<td>
				<input class="easyui-combobox" 
							name="cpId"
							data-options="
									url:'<%=path%>/cpinfo/populateCpinfoList',
									method:'get',
									valueField:'id',
									textField:'name',
									panelHeight:'auto'
							">
			</td>
			</tr>
			<tr>
			<td><div>游戏名称：</div></td>
			<td>
				<input name="name" style="width: 200" validType="length[1,50]"
					class="easyui-validatebox" required="true">
			</td>
			</tr>
			<tr>
			<td>游戏包名：</td>
			<td>
				<input name="packageName" style="width: 200" validType="length[1,50]"
					class="easyui-validatebox" required="true">
			</td>
			</tr>
			<tr>
			<td>游戏版本：</td>
			<td>
				<input name="version" style="width: 200" validType="length[1,50]"
					class="easyui-validatebox" required="true">
			</td>
			</tr>
			<!-- 
			<tr>
			<td>游戏CODE：</td>
			<td>
				<input name="appcode" style="width: 200" readonly="readonly">
			</td>
			</tr>
			 -->
			
			<tr>
			<td>游戏类型说明：</td>
			<td>
				<input name="type" style="width: 200" validType="length[1,100]"
					class="easyui-validatebox" required="true">
			</td>
			</tr>
			<tr>
			<td>是否计费：</td>
			<td>
				<select id="idBillStatus" class="easyui-combobox,easyui-validatebox" name="billStatus" style="width:160px;"   panelHeight="auto"
					required="true" 
					validType="selectValueRequired['#idBillStatus']" >
							<option value="1">计费</option>
							<option value="0">不计费</option>
							</select>
			</td>
			</tr>
			
			<tr>
			<td>不计费说明：</td>
			<td>
				<input name="reason" style="width: 200" validType="length[0,100]"
					class="easyui-validatebox" >
			</td>
			</tr>
			
			<tr>
			<td>是否弹出资费二次确认：</td>
			<td>
				<select id="idDoubleCheck" class="easyui-combobox,easyui-validatebox" name="doubleCheck" style="width:160px;"   panelHeight="auto"
					required="true" 
					validType="selectValueRequired['#idDoubleCheck']" >
							<option value="1">弹资费提示</option>
							<option value="0">不弹资费</option>
							</select>
							
			</td>
			</tr>
			
			<tr>
			<td>游戏结算比例：</td>
			<td>
				<input class="easyui-numberbox" name="percentage" style="width: 200" min="0" max="100"
					 required="true">
			</td>
			</tr>
			
			<tr>
			<td>结算坏账比例：</td>
			<td>
				<input class="easyui-numberbox" name="hjPercentage" style="width: 200" min="0" max="100"
					 required="true">
			</td>
			</tr>
			
			<tr>
			<td>&nbsp;</td>
			<td>
			<a href="#" id="btn-back" onclick="$('#MyPopWindow').window('close');"
				class="easyui-linkbutton" iconCls="icon-back">返回</a> 
			<a href="#" id="btn-add" onclick="saveOrUpdate()" class="easyui-linkbutton"
					iconCls="icon-save">保存</a>
			</td>
			</tr>
		</form>
	</div>
</body>
</html>
